ROS Alpha Challenge
Submission Link : Form
Complete The following tutorials in order before starting the challenge
It’s important to understand the first tutorial completely but it might be difficult to understand the second tutorial. Therefore we have written the basic steps to create a ROS package.
cd ~/catkin_ws/src
catkin_create_pkg <package_name> [depend1] [depend2] [depend3]Dependencies include rospy [for writing code in python] roscpp [for writing code in c++]
cd ~/catkin_ws
catkin_make
. ~/catkin_ws/devel/setup.bashNow it's time to apply the knowledge gained!
Task-0 (1st Submission)
Turtlesim using keyboard
- Make a video of about 10 seconds of turtle moving (controlled by arrow keys)
- Attach a screenshot of the rostopic list of turtlesim
- Attach a screenshot of rosnode list of turtlesim
Task-1
Create a Package
- Create a package (inside the catkin_ws) with the name
alpha_challengewith dependenciesrospy
- Inside the
alpha_challengepackage folder (which would be inside thecatkin_wsfolder), create a new folder with the namelaunchand add this file in the launch folder.
- Inside the
alpha_challengepackage folder, create a new folder with the namescriptsand add this file in thescriptsfolder.
- cd to the
scriptsfolder and make the python file executable with this commandchmod u+x move.py
- Don’t forget to do
catkin_makewhen you add a package incatkin_ws
Task-2 (2nd Submission)
Create 3 new terminal windows, the submission must contain a single screenshot with all 3 terminal windows together.
- First Terminal: Use the command
roscdto find the package path of the packagetask1created above. [Apply the knowledge of 1st tutorial]
- Second Terminal: Repeat the above task by using the
rospackcommand instead of theroscdcommand.
- Third Terminal: Repeat the above task by using the
roslscommand instead of therospackcommand.
Task-3
Now you need to launch the given launch file you added in the first task using the following command
roslaunch alpha_challenge move.launchThe turtlesim should move in a straight line.
Now, your task is to modify the code in the python file move.py such that it performs the
following subtasks:
- Move the turtlesim in an equilateral triangle of side length 2 units (3rd Submission)
- Move the turtlesim in this manner (4th Submission)
Resources